// 设置token
export const SET_TOKEN = (token: string) => {
  localStorage.setItem("token", token);
};

// 获取token
export const GET_TOKEN = () => {
  return localStorage.getItem("token");
};

// 移除token
export const REMOVE_TOKEN = () => {
  localStorage.removeItem("token");
};

// 获取当前时间
export const getNowTime = () => {
  const hours = new Date().getHours();
  // console.log(hours);
  if (hours <= 9) {
    return "早上";
  } else if (hours <= 12) {
    return "上午";
  } else if (hours <= 18) {
    return "下午";
  } else {
    return "晚上";
  }
};
